﻿using Hetang.Models.DataContext;
using Hetang.Models.Classes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Hetang.Models.Interface
{
    public interface ILoginRepository
    {
        /// <summary>
        /// 检查是否已经登录
        /// </summary>
        /// <returns></returns>
        bool CheckLogin();

        /// <summary>
        /// 获取用户类型
        /// </summary>
        /// <returns>null：未登录，0：管理员，1：个人用户，2：企业用户</returns>
        int GetUsertype();

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        string Login(dt_Login account);

        /// <summary>
        /// 注销
        /// </summary>
        void Logout();
    }
}